<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>login</title>
</head>
<body>
	<h2 style="color: red;">模拟登录，只记录用户名建立websocket连接</h2>
	<hr />  <br />
	用户名： <input name="user" type="text" id="user"> <br /> <br />
	密码  ：<input name="password" type="password" id="password"> <br /> <br />
	<button onclick="send()">登录</button>

	<script type="text/javascript">
		function send() {
    		const user = document.getElementById("user").value;
    		 window.location.href = "chat.html?user=" + user 
		}
	</script>
</body>
</html>